package com.bzxgc.sgwer.common.page;

public class JdbcSqlStudentServiceImpl implements StudentService {

    private StudentDao studentDao;

    public JdbcSqlStudentServiceImpl() {
        // 创建service实现类时，初始化dao对象
        this.studentDao = new JdbcSqlStudentDaoImpl();
    }

    @Override
    public Pager<Student> findStrudent(Student student, int pageNum, int pageSize) {
        Pager<Student> result = studentDao.findStrudent(student, pageNum, pageSize);
        return result;
    }
}
